Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Jan 9, 2026

Summary

This PR migrates from the deprecated action-prepare-release to the new Craft GitHub Actions.

Changes

  • Migrated .github/workflows/release.yml to Craft reusable workflow

Documentation

See https://getsentry.github.io/craft/github-actions/ for more information.

This PR migrates from the deprecated action-prepare-release to the new
Craft GitHub Actions (reusable workflow or composite action).

Changes:
- Migrate .github/workflows/release.yml to Craft reusable workflow
@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Bug Fixes

  • (apple) Prevent duplicate init() in SwiftUI apps with existing initializer by betegon in #1188

Internal Changes

  • (release) Switch from action-prepare-release to Craft by BYK in #1186

🤖 This preview updates automatically when you update the PR.

BYK added 3 commits January 9, 2026 23:19
The previous migration incorrectly removed the GitHub App token
authentication step. This commit restores it by switching to the
composite action pattern which preserves the auth flow.
@BYK BYK requested a review from Lms24 January 14, 2026 22:15
@BYK BYK enabled auto-merge (squash) January 14, 2026 22:15
run: yarn install
- name: Prepare release
uses: getsentry/action-prepare-release@v1
uses: getsentry/craft@c6e2f04939b6ee67030588afbb5af76b127d8203 # v2
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The version input for the release workflow is optional. If not provided, it passes an empty string to the craft action, which may cause the workflow to fail.
Severity: MEDIUM

Suggested Fix

To prevent potential failures, provide a default value for the version input. For example, setting default: 'auto' would align with the input's description and ensure the craft action receives a valid, expected value when the input is not manually specified.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: .github/workflows/release.yml#L40

Potential issue: In the `release.yml` workflow, the `version` input is now optional
(`required: false`) and lacks a default value. When this workflow is triggered manually
without providing a version, GitHub Actions passes an empty string (`''`) to the
`getsentry/craft` action. It is uncertain if the `craft` action is designed to handle an
empty string for its `version` parameter. If it is not, this could cause the release
process to fail when a version is not explicitly provided during a manual trigger.

Did we get this right? 👍 / 👎 to inform future reviews.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@BYK I believe this is no longer required because the action would determine the release automatically, unless manually specified, correct?

@BYK BYK merged commit 884a215 into master Jan 15, 2026
54 checks passed
@BYK BYK deleted the ci/migrate-to-craft-action branch January 15, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants